package com.i2bt.util;

import com.i2bt.R;

import android.content.Context;
import android.graphics.drawable.Drawable;

/**
 * 
 * Title : 随机获取图片类
 *
 * Description : 这个类是测试用的, 为了避免好友图像都是同一张图, 看着郁闷哎!
 *
 * CreatedTime : 2014-8-22
 *
 * @author wuliao & kakaxi & yi
 *
 * @version 1.0
 *
 */

public class RandomImageUtil {
	
	private static final int baseImgId = R.drawable.img_1;
	
	public static Drawable getFriendImg(Context context) {
		int random = (int) (Math.random() * 11);
		Drawable drawable = context.getResources().getDrawable(baseImgId + random);
		return drawable;
	}
	
}
